package moc.egg;
import moc.compiler.*;
import moc.tds.*;
import moc.type.*;
import moc.gc.*;
import java.util.*;
import moc.type.object.*;
import mg.egg.eggc.runtime.libjava.lex.*;
import mg.egg.eggc.runtime.libjava.*;
import mg.egg.eggc.runtime.libjava.messages.*;
import mg.egg.eggc.runtime.libjava.problem.IProblem;
import java.util.Vector;
public class S_MPARFS_MOC {
LEX_MOC scanner;
  S_MPARFS_MOC() {
    }
  S_MPARFS_MOC(LEX_MOC scanner, boolean eval) {
    this.scanner = scanner;
    this.att_eval = eval;
    this.att_scanner = scanner;
    }
int [] sync= new int[0];
  SIGNATURE att_hsignature;
  int att_depLB;
  int att_hdepLB;
  boolean att_eval;
  String att_metid;
  IMachine att_machine;
  SIGNATURE att_signature;
  TDS att_tds;
  LEX_MOC att_scanner;
  private void regle90() throws Exception {

    //declaration
    //appel
if  (att_eval)      action_sig_90();
  }
  private void regle91() throws Exception {

    //declaration
    S_MPARF_MOC x_2 = new S_MPARF_MOC(scanner,att_eval) ;
    S_MPARFS_MOC x_4 = new S_MPARFS_MOC(scanner,att_eval) ;
    //appel
if  (att_eval)      action_auto_inh_91(x_2, x_4);
    x_2.analyser() ;
if  (att_eval)      action_sig_91(x_2, x_4);
    x_4.analyser() ;
if  (att_eval)      action_ssig_91(x_2, x_4);
  }
private void action_sig_91(S_MPARF_MOC x_2, S_MPARFS_MOC x_4) throws Exception {
try {
// instructions
x_4.att_hsignature=x_2.att_signature;
x_4.att_hdepLB=x_2.att_depLB;
}catch(RuntimeException e) {       att_scanner._interrompre(IProblem.Internal,att_scanner.getBeginLine(),ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,new Object[] { "MOC", "#sig","MPARFS -> MPARF #sig MPARFS1 #ssig ;"});
}
  }
private void action_sig_90() throws Exception {
try {
// instructions
this.att_signature=this.att_hsignature;
this.att_depLB=this.att_hdepLB;
this.att_metid="";
}catch(RuntimeException e) {       att_scanner._interrompre(IProblem.Internal,att_scanner.getBeginLine(),ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,new Object[] { "MOC", "#sig","MPARFS -> #sig ;"});
}
  }
private void action_auto_inh_91(S_MPARF_MOC x_2, S_MPARFS_MOC x_4) throws Exception {
try {
// instructions
x_2.att_tds=this.att_tds;
x_4.att_tds=this.att_tds;
x_2.att_hsignature=this.att_hsignature;
x_2.att_hdepLB=this.att_hdepLB;
x_2.att_machine=this.att_machine;
x_4.att_machine=this.att_machine;
}catch(RuntimeException e) {       att_scanner._interrompre(IProblem.Internal,att_scanner.getBeginLine(),ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,new Object[] { "MOC", "#auto_inh","MPARFS -> MPARF #sig MPARFS1 #ssig ;"});
}
  }
private void action_ssig_91(S_MPARF_MOC x_2, S_MPARFS_MOC x_4) throws Exception {
try {
// instructions
this.att_metid=x_2.att_metid+x_4.att_metid;
this.att_signature=x_4.att_signature;
this.att_depLB=x_4.att_depLB;
}catch(RuntimeException e) {       att_scanner._interrompre(IProblem.Internal,att_scanner.getBeginLine(),ICoreMessages.id_EGG_runtime_error, CoreMessages.EGG_runtime_error,new Object[] { "MOC", "#ssig","MPARFS -> MPARF #sig MPARFS1 #ssig ;"});
}
  }
  public void analyser () throws Exception {
    scanner.lit ( 1 ) ;
    switch ( scanner.fenetre[0].code ) {
      case LEX_MOC.token_aco : // 231
        regle90 () ;
      break ;
      case LEX_MOC.token_ident : // 277
        regle91 () ;
      break ;
      default :
               scanner._interrompre(IProblem.Syntax, scanner.getBeginLine(), IMOCMessages.id_MOC_unexpected_token,MOCMessages.MOC_unexpected_token,new String[]{scanner.fenetre[0].getNom()});
    }
  }
  }
